package com.crm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crm.DTO.ClueQueryDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.DTO.FishCluesDTO;
import com.crm.common.result.TableDataInfo;
import com.crm.entity.Clue;
import com.crm.vo.CluePageVO;

import java.util.List;

/**
* @author chy
* @description 针对表【clue(线索表)】的数据库操作Service
* @createDate 2025-09-04 13:20:18
*/
public interface ClueService extends IService<Clue> {


    TableDataInfo<Clue> pageCules(ClueQueryDTO queryDTO);

    void saveClue(Clue clue);

    boolean updatePseudoById(Long id, Clue clue);

    TableDataInfo<Clue>  getCluePool(ClueQueryDTO queryDTO);

    boolean updateFishWithById(FishCluesDTO fishCluesDTO);

    boolean changeBusiness(Long id);
    /**
     * 分配
     * @param ownerId    现在的负责人ID
     * @param transferId 要分配的用户ID
     * @return
     */
    void assignment(Long ownerId, Long transferId);
}
